package com.zmj.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zmj.service.DocumentInfoFullService;
import com.zmj.service.DocumentInfoService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/documentInfo/")
@Api("解析数据")
public class DocumentInfoController {

    @Autowired
    private DocumentInfoService documentService;

    @Autowired
    private DocumentInfoFullService documentInfoFullService;

    @ApiOperation("生成单个html文件")
    @PostMapping("generateSinglehtml")
    public void generateSinglehtml() {
        documentService.generateSinglehtml();
        // return null;
    }

    // @ApiOperation("生成完整html文件")
    // @PostMapping("generateFullhtml")
    // public String generateFullhtml() {
    //     documentInfoFullService.generateFullhtml();
    //     return null;
    // }

}
